package top.feiskyend.core.web.service;

import top.feiskyend.core.web.model.po.UserPo;

import java.util.Map;

/**
 * @author: YTF
 * @date: 2022/9/13 17:44
 * @version: 1.0
 * @email: 1712310435@qq.com
 * @description:
 */
public interface UserService {

    /**
     * 根据用户id获取详情
     * @param id
     * @return 用户详情
     */
    UserPo selectById(int id);

    /**
     * 注册新用户
     * @param user
     * @return
     */
    Map<String, Object> register(UserPo user);

    /**
     * 登入用户
     * @param username
     * @param password
     * @return
     */
    Map<String, Object> login(String username, String password);
}
